---
title: "KTorrent scripts and information"
date: 2020-6-3
categories:
- linux
- kross
- ktorrent-scripts
tags:
---

<div id="content">
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org9614d8d">Light Tracker Cleaning</a></li>
<li><a href="#orga4e9974">New Torrent Added</a></li>
<li><a href="#org4a927c8">Torrent Status Changed</a></li>
<li><a href="#org40572a5">New Adds Bump Up</a></li>
<li><a href="#org2dcca43">the following will make your</a></li>
</ul>
</div>
</div>
<blockquote>
<p>
<a href="http://inet-design.com/ktorrent-scripts-and-information.html">http://inet-design.com/ktorrent-scripts-and-information.html</a>
</p>
</blockquote>
<div class="outline-2" id="outline-container-org9614d8d">
<h2 id="org9614d8d">Light Tracker Cleaning</h2>
<div class="outline-text-2" id="text-org9614d8d">
<p>
#!/usr/bin/env kross
</p>
</div>
</div>
<div class="outline-2" id="outline-container-orga4e9974">
<h2 id="orga4e9974">New Torrent Added</h2>
<div class="outline-text-2" id="text-orga4e9974">
<p>
#!/usr/bin/env kross
</p>
</div>
</div>
<div class="outline-2" id="outline-container-org4a927c8">
<h2 id="org4a927c8">Torrent Status Changed</h2>
<div class="outline-text-2" id="text-org4a927c8">
<p>
#!/usr/bin/env kross
</p>
</div>
</div>
<div class="outline-2" id="outline-container-org40572a5">
<h2 id="org40572a5">New Adds Bump Up</h2>
<div class="outline-text-2" id="text-org40572a5">
<p>
#!/usr/bin/env kross
</p>
</div>
</div>
<div class="outline-2" id="outline-container-org2dcca43">
<h2 id="org2dcca43">the following will make your</h2>
<div class="outline-text-2" id="text-org2dcca43">
<p>
the following will make your code more simple:
</p>
<p>
for t in tors:
   tor = KTorrent.torrent(t)
   for tracker in tor.trackers():
      if 'piratebay.org' in tracker:
         tor.setTrackerEnabled(tracker, 0)
</p>
<p>
tor.addTracker(…)
</p>
</div>
</div>
</div>
<div class="status" id="postamble">
<p class="date">Date: 2020-6-3</p>
<p class="author">Author: <a href="http://inet-design.com">http://inet-design.com</a></p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
